[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
The indexer of the dictionary. This is used to store keys and values and
retrieve values from the dictionary. The setter
accessor must be overridden in the derived class.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public virtual TValue this[ TKey key ]{ get; set;} |
Visual Basic (Declaration) |
---|
Public Overridable Default Property Item ( _ key As TKey _ ) As TValue |
Visual C++ |
---|
public: virtual property TValue default[TKey key] { TValue get (TKey key); void set (TKey key, TValue value); } |
Parameters
- key
- TKey
Key to find in the dictionary.
Return Value
The value associated with the key.Exceptions
Exception | Condition |
---|---|
System.Collections.Generic..::KeyNotFoundException | Thrown from the get accessor if the key was not found in the dictionary. |
See Also
Wintellect.PowerCollections Namespace